How many frames `frame` advances per game frame. 0 (the default) does not animate; 1 is one frame every game frame (60 a second); 0.5 is one every other game frame. Runs back to frame 0 by itself after the last frame (the sprite knows how many it has) and fires Animation End. Set `frame` any time to jump to a frame.
frame_speed: realHow fast a sprite's animation plays: how many pictures frame moves along on every game frame. It starts at 0, which means no animation, so a sprite only changes picture when you set frame yourself.
1 moves one picture every game frame. The GBA runs 60 game frames a second, so that is 60 pictures a second, which is very fast.0.5 moves one picture every other game frame, 0.25 one every fourth, 0.125 one every eighth.When frame runs past the last picture it goes back to the first one by itself. The sprite knows how many pictures it has, so you never count them. That moment also fires the Animation End event, once per time round, at any speed.
While the game is paused (game_pause) the animation holds still too, and carries on from the same place when the game resumes. That comes from a box in Project Settings, Stop animations on pause, which is ticked in every project. If you unticked it, the animation keeps playing behind your pause menu, and you stop it yourself by setting frame_speed = 0 when you pause.
You can still set frame while an animation plays: it jumps to that picture and carries on from there. Setting frame_speed = 0 stops the animation on the picture it is showing, and starting it again begins on a fresh picture, so frame_speed = 0; frame = 3; stops it and shows the fourth picture.
The speed is stored in 4096ths, so a number like 0.1 is really a hair under 0.1 and each picture lasts 10.015 game frames instead of 10. You will not see that, but speeds like 0.5, 0.25 and 0.125 are exact.
frame_speed = 0.125;Moves one picture every eight game frames: a sprite with two pictures swaps between them about 7.5 times a second, a good walking pace.